<template>
	<view class="lz-tradingview relative" :style="{height:height}" >
		<web-view :src="webView.src" :fullscreen="false" style="width: 100%;height: 100%;border: 0;"></web-view>
	</view>
</template>
<script>
	export default {
		props: {
			height: {
				type: String,
				default: "400px"
			},
			mode: {
				type: String,
				default: "bottom"
			},
		},
		data() {
			return {
				show:false,
				webView:{
					src:''
				},
				
			}
		},
		mounted() {
			// this.webView.src=''
			this.webView.src= process.env.NODE_ENV == 'development'? 'http://localhost:9999/#/?data=2323': 'https://env-00jxtjrvot7a-static.normal.cloudstatic.cn/tradingview/index.html'
			setTimeout(()=>{
				this.show=true
			})
		},

		methods: {
			
		}
	}
</script>
<style lang="scss">
	
</style>